package com.lswms.modules.lswms.entity.check;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lswms.common.entity.LswmsBaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 盘点明细
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lswms_checkdetail")
public class CheckdetailEntity extends LswmsBaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 盘点号
	 */
	@TableField(value = "checkkey")
	private String checkkey;
	/**
	 * 行号
	 */
	@TableField(value = "line")
	private Integer line;
	/**
	 * 状态
	 */
	@TableField(value = "status")
	private Integer status;
	/**
	 * 自商品
	 */
	@TableField(value = "sku")
	private String sku;
	/**
	 * 批号
	 */
	@TableField(value = "lot")
	private String lot;
	/**
	 * 库位编码
	 */
	@TableField(value = "location")
	private String location;
	/**
	 * 目的托盘
	 */
	@TableField(value = "tray")
	private String tray;
	/**
	 * 目的容器
	 */
	@TableField(value = "box")
	private String box;
	/**
	 * 数量
	 */
	@TableField(value = "qty")
	private BigDecimal qty;
	/**
	 * 初盘数量
	 */
	@TableField(value = "firstqty")
	private BigDecimal firstqty;
	/**
	 * 初盘人
	 */
	@TableField(value = "firstuser")
	private String firstuser;
	/**
	 * 初盘时间
	 */
	@TableField(value = "firsttime")
	private Date firsttime;
	/**
	 * 复盘数量
	 */
	@TableField(value = "secondqty")
	private BigDecimal secondqty;
	/**
	 * 复盘人
	 */
	@TableField(value = "seconduser")
	private String seconduser;
	/**
	 * 复盘时间
	 */
	@TableField(value = "secondaddtime")
	private Date secondaddtime;
	/**
	 * 生产日期
	 */
	@TableField(value = "lot1")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date lot1;
	/**
	 * 有效日期
	 */
	@TableField(value = "lot2")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date lot2;
	/**
	 * 属性3
	 */
	@TableField(value = "lot3")
	private String lot3;
	/**
	 * 属性4
	 */
	@TableField(value = "lot4")
	private String lot4;
	/**
	 * 属性5
	 */
	@TableField(value = "lot5")
	private String lot5;
	/**
	 * 属性6
	 */
	@TableField(value = "lot6")
	private String lot6;
	/**
	 * 属性7
	 */
	@TableField(value = "lot7")
	private String lot7;
	/**
	 * 属性8
	 */
	@TableField(value = "lot8")
	private String lot8;
	/**
	 * 属性9
	 */
	@TableField(value = "lot9")
	private String lot9;
	/**
	 * 属性10
	 */
	@TableField(value = "lot10")
	private String lot10;

	/**
	 * 属性11
	 */
	@TableField(value = "lot11")
	private String lot11;
	/**
	 * 属性12
	 */
	@TableField(value = "lot12")
	private String lot12;
	/**
	 * 属性13
	 */
	@TableField(value = "lot13")
	private String lot13;
	/**
	 * 属性14
	 */
	@TableField(value = "lot14")
	private String lot14;
	/**
	 * 属性15
	 */
	@TableField(value = "lot15")
	private String lot15;
	
	@TableField(value = "toloc")
	private String toloc;
	
	@TableField(value = "uniquecodes")
	private String uniquecodes;

	/**
	 * 备注
	 */
	@TableField(value = "remark")
	private String remark;
	/**
	 * 回传状态
	 */
	@TableField(value = "backstatus")
	private String backstatus;
	/**
	 * 回传时间
	 */
	@TableField(value = "backdate")
	private Date backdate;
	/**
	 * 回传结果
	 */
	@TableField(value = "backresult")
	private String backresult;
	/**
	 * 回传码
	 */
	@TableField(value = "backcode")
	private String backcode;
	/**
	 * 仓库
	 */
	@TableField(value = "warehouse")
	private String warehouse;

	@TableField(exist = false)
	private String statusstr;

	@TableField(exist = false)
	private String descr;
	
	@TableField(exist = false)
	private String factorycdoe;
	
	@TableField(exist = false)
	private String isuniquecode;
}